let component = {
  properties: {
    takeBanner: {
      type: Array,
      value: [],
      observer: function (newValue) {
        this.setData({
          bannerIndex: 0
        })
      }
    }
  },
  data: {
    bannerIndex: 0
  },
  methods: {
    toGoodsDetail (e) {
      this.triggerEvent('toGoodsDetail', e.currentTarget.dataset)
    }
  }
}
Component(component)
